//
//  HJVoiceLeftCell.h
//  project
//
//  Created by hu on 2019/3/28.
//  Copyright © 2019 健健. All rights reserved.
//

#import <UIKit/UIKit.h>

NS_ASSUME_NONNULL_BEGIN
typedef NS_ENUM(NSUInteger, LGVoiceLeftPlayState){
    LGVoicePlayLeftStateNormal,/**< 未播放状态 */
    LGVoicePlayLeftStateDownloading,/**< 正在下载中 */
    LGVoicePlayLeftStatePlaying,/**< 正在播放 */
    LGVoicePlayLeftStateCancel,/**< 播放被取消 */
};


@class HJVoiceLeftCell;
@protocol VociePlayerLeftDelegate <NSObject>

@optional
-(void)voiceLeftMessageTaped:(HJVoiceLeftCell *_Nonnull)cell data:(NSData *_Nonnull)data isRgiht:(BOOL)isRight;

@end
@interface HJVoiceLeftCell : UITableViewCell

-(void)loadLeftVocieMsg:(RCMessage *)msg;
-(void)loadLeftVocieMsg:(RCMessage *)msg avatarUrl:(NSString *)url;
@property (nonatomic,weak) id<VociePlayerLeftDelegate> delegate;
@property (nonatomic, assign) LGVoiceLeftPlayState voiceLeftPlayState;


@end

NS_ASSUME_NONNULL_END
